from rest_framework import serializers
from apps.activity.models import Gathering

class GatheringSimpleSerializer(serializers.ModelSerializer):
    # 活动序列化器
    class Meta:
        model = Gathering
        # fields = {'id', 'name', 'image', 'city', 'starttime', 'endrolltime', 'users'}
        fields = '__all__'

class GatheringDetailSerializer(serializers.ModelSerializer):
    # 活动详情页
    class Meta:
        model = Gathering
        fields = '__all__'